package com.eight.controller;

import com.eight.feign.TestFeign;
import com.eight.vo.ComResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Description: TODO
 * @Author: Van.Planifolia
 * @CreateTime: 2023-02-28  21:37
 * @Version: 1.0
 */
@RestController
public class TestController {
    @Autowired
    private TestFeign testFeign;
    @RequestMapping("/coupon/upload/{dirPath}")
    public ComResult upload(MultipartFile file, @PathVariable String dirPath){
        return testFeign.upload(file,dirPath);
    }
}
